﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace ACP.Web.UI.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);

            string strMsg = Request.Params["str"];
            string strUserID = Request.Params["user"];
            TextBox userUserIDTextBox = (TextBox)LoginUser.FindControl("UserName");


            if (strMsg == "Activated")
            {
                divLoginMsg.Visible = false;
                lblActivatedUser.Text = "Thanks for Registering with ACPTest.com, Your account has been activated successfully.  Please continue with login...";
                userUserIDTextBox.Text = strUserID;
                LoginUser.FindControl("Password").Focus();
            }

            if (strMsg == "Created")
            {
                divLoginMsg.Visible = false;
                lblActivatedUser.Text = "Thanks for Registering with ACPTest.com, Your account has been created successfully.  Please continue with login...";
                userUserIDTextBox.Focus();
                //LoginUser.FindControl("Password").Focus();
            }
        }
    }
}
